﻿<link rel="stylesheet" href="${ctx}/common/common.css" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %>
<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">商品信息</legend>
  </fieldset>
  <div class="layui-col-md3 layui-col-space10" style="text-align: right">
    <c:if test="${not empty product.imgDefault}">
      <img
        src="${ctx}/${product.imgDefault}"
        style="margin: 0px auto; width: 173px; height: 156px; border-radius: 10px; border: 1px solid #e7e7e7"
      />
    </c:if>
    <c:if test="${empty product.imgDefault}">
      <img
        src="${ctx}/common/imgs/defaultImage.png"
        style="margin: 0px auto; width: 173px; height: 156px; border-radius: 10px; border: 1px solid #e7e7e7"
      />
    </c:if>
  </div>
  <div class="layui-col-md7 layui-text" style="padding-left: 20px">
    <p>商品名称：${product.productName}</p>
    <p>产品编码：${product.standardNum}</p>
    <p>规格/单位：${product.specifications}/${product.unit}</p>
    <p>执行标准：${product.perfStandard}</p>
    <p>配料：${product.ingredients}</p>
    <p>生产日期：${product.worksheetDate}</p>
    <p>保质期：${product.shelfLife}天</p>
  </div>
  <div class="layui-col-md2 layui-col-space10" style="text-align: left">
    <c:if test="${not empty imgUrlCode}">
      <img
        src="${ctx}/${imgUrlCode}"
        style="margin: 0px auto; width: 173px; height: 156px; border-radius: 10px; border: 1px solid #e7e7e7"
      />
      <p style="margin: 2px 0px 2px 60px">扫码查看</p>
    </c:if>
  </div>
</div>
